package com.example.singletones;

import android.widget.TextView;

public class _d {
	private static _d instance = null;

	public static _d getInstance() {
		if (instance == null) {
			instance = new _d();
		}
		return instance;
	}

	private String debugData = "";

	private TextView textData;

	protected _d() {
		// Exists only to defeat instantiation.
	}

	public void appendText(String Data) {
		if (Data != null && instance != null) {
			debugData = debugData + Data;
			textData.setText(debugData);
		}
	}

	public void InitView(TextView t1) {
		textData = t1;
	}

	public void setText(String Data) {
		if (Data != null && instance != null) {
			debugData = Data;
			textData.setText(debugData);
		}

	}
}
